package com.gupao.prototype;

/**
 * Created by ktyan on 2017/5/23.
 */
public class PrototypeTest {
    public static void main(String[] args) {
        ConcretePrototype c = new ConcretePrototype();
        c.setName("哈哈");

        ConcretePrototype cp = (ConcretePrototype) c.clone();
        System.out.println(cp.getName());
    }
}
